FROM node:10

# Create app directory
RUN mkdir -p /data/nodework
WORKDIR /data/nodework

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)

# If you are building your code for production
# RUN npm install --only=production

# install cnpm 
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
# Bundle app source

EXPOSE 8080
CMD [ "npm", "start" ]
